#!/usr/bin/env python

# Imports
import pygtk
pygtk.require('2.0')
import gtk
import gobject
from biblioteca import *

def destroy(self):
  gtk.main_quit()

def main():
  gtk.main()
  return 0

if __name__ == "__main__":

  window.set_title("SimpleLogo")
  window.set_default_size(CANVAS_X,CANVAS_Y)
  window.set_position(gtk.WIN_POS_CENTER)
  window.connect("destroy", destroy)

  area.set_size_request(CANVAS_X,CANVAS_Y)
  window.add(area)
  area.show()
  area.modify_bg(gtk.STATE_NORMAL, bg_color)

  window.show()

  penwidth(int(5))
  turnright(90)
  i = 0
  for i in range(0, 5+1):
    forward(int(100))
    turnleft(int(60))
  i = 0
  for i in range(0, 3+1):
    forward(int(100))
    turnright(int(90))
  penup()
  #print_string("Neway")
  forward(33)
  penwidth(2)
  pendown()
  turnright(90)
  forward(30)
  penup()
  backward(30)
  turnleft(90)
  forward(34)
  turnright(90)
  pendown()
  forward(30)
  penup()
  backward(30)
  turnleft(90)
  forward(40)
  penwidth(1)
  # raios
  pendown()
  turnright(15)
  forward(150)
  penup()
  backward(150)
  turnleft(75)
  forward(100)

  for i in range(1,5):
    pendown()
    turnright(60)
    forward(150)
    penup()
    backward(150)
    turnleft(120)
    forward(100)

  pendown()
  turnright(100)
  forward(150)
  penup()
  backward(150)
  turnleft(75)
  forward(100)

  pendown()
  goy(300)
  print_string("NEWAY")

  main()
